package com.codeduck.bean.config;

import com.codeduck.bean.entity.BeanFullLifeCycle;
import com.codeduck.bean.entity.BeanFullLifeCyclePostProcessor;
import org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * BeanFullLifeCycleConfig 的测试方法 见 {@link com.codeduck.bean.BeanLifeCycleTest#beanLifeCycleConfigTest06()}
 *
 * @author: <a href="mailto:codeduck@163.com">Codeduck</a>
 * @createDate: 2021-12-23
 */
@Configuration
public class BeanFullLifeCycleConfig {

//    @Bean(initMethod = "init", destroyMethod = "destroy")
//    public BeanFullLifeCycle beanFullLifeCycle() {
//        return new BeanFullLifeCycle();
//    }
//
//    @Bean
//    public InstantiationAwareBeanPostProcessor instantiationAwareBeanPostProcessor() {
//        return new BeanFullLifeCyclePostProcessor();
//    }
}
